import { http } from '@/utils/request/common'

enum Urls {
	storeList = 'mini/store/list',
	storeDetail = 'mini/store/detail',
  storeCreate = 'mini/store/add',
  storeEdit = 'mini/store/edit',
	entrance = 'mini/board/entrance',
	report = 'mini/board/report',
	account = 'mini/board/account',
	warehouseEntrance = 'mini/warehouse/entrance',
	paymentList = 'mini/settle/payment_list',
	settleStoreList = 'mini/settle/store_list',
	stockList = 'mini/stock/list',
	stockDetail = 'mini/stock/detail',
	stockModify = 'mini/stock/modify',
	stockCheck = 'mini/stock/check',
	outStock = 'mini/warehouse/out_stock',
	inStock = 'mini/warehouse/in_stock',
	deliveryList = 'mini/delivery/list',
	deliveryDetail = 'mini/delivery/detail',
	accountDetail = 'mini/board/account_detail',
	storeSignIn = 'mini/store/sign_in',
	storeSignLog = 'mini/store/sign_log'
}

// 业务员端门店列表
export const storeList = (params) => http.get(Urls.storeList, params)

// 业务员端门店详情
export const storeDetail = (params) => http.get(Urls.storeDetail, params)

// 业务员端门店新增
export const storeCreate = (data) => http.post(Urls.storeCreate, data)

// 业务员端门店编辑
export const storeEdit = (data) => http.post(Urls.storeEdit, data)

// 看板入库
export const entrance = (params) => http.get(Urls.entrance, params)

// 经营报表
export const report = (params) => http.get(Urls.report, params)

// 账户余额
export const account = (params) => http.get(Urls.account, params)

// 仓库
export const warehouseEntrance = (params) => http.get(Urls.warehouseEntrance, params)

// 账期账单列表
export const paymentList = (params) => http.get(Urls.paymentList, params)

// 金额门店列表
export const settleStoreList = (params) => http.get(Urls.settleStoreList, params)

// 盘点列表
export const stockList = (params) => http.get(Urls.stockList, params)

// 盘点详情
export const stockDetail = (params) => http.get(Urls.stockDetail, params)

// 盘点修改数量
export const stockModify = (data) => http.post(Urls.stockModify, data)

// 盘点完成
export const stockCheck = (data) => http.post(Urls.stockCheck, data)

// 出库明细
export const outStock = (params) => http.get(Urls.outStock, params)

// 入库明细
export const inStock = (params) => http.get(Urls.inStock, params)

// 物流配送
export const deliveryList = (params) => http.get(Urls.deliveryList, params)

// 物流详情
export const deliveryDetail = (params) => http.get(Urls.deliveryDetail, params)

// 账户明细
export const accountDetail = (params) => http.get(Urls.accountDetail, params)

//门店签到
export const storeSign = (params) => http.post(Urls.storeSignIn, params)

//签到日志
export const storeSignLog = (params) => http.get(Urls.storeSignLog, params)